//获取应用实例
var app = getApp()
var user = {};
Page({
  data: {
    infos:null
  },
    onLoad: function (option) {
    var pointid = option.pointId;
    var that = this
    console.log("onload....")
    wx.request({
      url: 'http://localhost:8888/msg/detail',
      data: {
        pointId:pointid
      },
      method: 'GET', 
      success: function(res){
        console.log("红包详情："+JSON.stringify(res.data));
        that.setData({infos:res.data})
      },
      fail: function() {
        // fail
      },
      complete: function() {
        // complete
      }
    })
    }
});